<?php

class PostsTableSeeder extends Seeder {

	/**
	 * Run the database seeds.
	 *
	 * @return void
	 */
	public function run()
	{
		DB::table('posts')->insert([
			[
				'title'=>'Little Babe 可爱的小孩~',
				'filename'=>'http://www.api.demo/video/v_52c4cbe4af085.mp4',
				'poster'=>'http://www.api.demo/img/58b42cac6c4611e3a8e2125bf1c10974_8.jpg',
				'user_id'=>1,
				'play_count'=>0,
				'created_at' => '2012-03-04 15:22:33.0000',
				'updated_at' => '2012-03-05 15:22:33.0000',
			],
			[
				'title'=>'哈哈哈哈哈哈',
				'filename'=>'http://www.api.demo/video/v_52c4cbe4af085.mp4',
				'poster'=>'http://www.api.demo/img/58b42cac6c4611e3a8e2125bf1c10974_8.jpg',
				'user_id'=>2,
				'play_count'=>0,
				'created_at' => '2013-01-04 15:22:33.0000',
				'updated_at' => '2013-03-05 15:22:33.0000',
			],
			[
				'title'=>'呵呵呵呵呵',
				'filename'=>'http://www.api.demo/video/v_52c4cbe4af085.mp4',
				'poster'=>'http://www.api.demo/img/58b42cac6c4611e3a8e2125bf1c10974_8.jpg',
				'user_id'=>2,
				'play_count'=>0,
				'created_at' => '2014-02-04 15:22:33.0000',
				'updated_at' => '2014-02-05 15:22:33.0000',
			],		
		]);
		// $post = new Posts;
		// $post->title = 'Little Babe 可爱的小孩~';
		// $post->filename = 'http://www.api.demo/video/v_52c4cbe4af085.mp4';
		// $post->poster = 'http://www.api.demo/img/58b42cac6c4611e3a8e2125bf1c10974_8.jpg';
		// $post->user_id = 1;
		// $post->save();
	}

}